package com.xiaoxiaoxt.xiaoxiaoxtdao.mapper;

import com.xiaoxiaoxt.xiaoxiaoxtdao.entity.ClassRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface ClassRecordMapper extends Mapper<ClassRecord> {

    @Select("select * from mo_class_record where record_sid like concat('%',#{recordId},'%') ORDER BY record_id DESC LIMIT 1")
    @ResultMap("BaseResultMap")
    ClassRecord selectBySid(@Param(value = "recordId") String recordId);
}